package com.wrupple.muba.catalogs.client.events.catalog;

import java.util.Collection;

import com.google.gwt.event.shared.GwtEvent;

public class EntriesDeletedEvent extends GwtEvent<EntriesDeletedEventHandler> {

	private static Type<EntriesDeletedEventHandler> type;
	public Collection<String> entries;
	public String catalog;

	public EntriesDeletedEvent(Collection<String> values, String catalog) {
		this.catalog = catalog;
		this.entries = values;
	}

	@Override
	protected void dispatch(EntriesDeletedEventHandler handler) {
		handler.onEntriesDeleted(this);
	}
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<EntriesDeletedEventHandler> getAssociatedType() {
		return getType();
	}

	public static com.google.gwt.event.shared.GwtEvent.Type<EntriesDeletedEventHandler> getType() {
		if(type==null){
			type=new Type<EntriesDeletedEventHandler>();
		}
		return type;
	}


}
